package com.fengye.common.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * UserDto
 *
 * @author 枫叶fy
 * @description 用户dto
 * @since 2024/2/29 20:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserLoginDto {
    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 3, message = "密码长度不能低于3位")
    private String password;
}
